<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>使用freemarker模板</title>
</head>
<body>
<h1>欢迎：${username}</h1>
<table border="1" style="width: 50%">
    <tr>
        <th>序号</th>
        <th>学科</th>
        <th>成绩</th>
    </tr>
    <#list userScores as userScore>
        <tr>
            <td>${userScore_index+1}</td>
            <td>${userScore.subject}</td>
            <td>${userScore.score}</td>
        </tr>
    </#list>
</table>
</body>
</html>